/**文件上传返回值 */
export interface UploadResponse {
  /** */
  bucketName: string;
  /**文件名 */
  fileName: string;
  /**文件路径 */
  url: string
}

/**手机号验证码登录 */
export interface CodeLoginReqeust {
  /** 登陆类型 */
  grant_type: 'mobile';
  /** 手机号 */
  mobile: string;
  /** 验证码 */
  code: string
}

/**获取验证码 */
export interface SMSCodeRequest {
  /**手机号 */
  mobile: string;
  /**获取验证码类型 */
  smsType: 'mobile_login' | 'mobile_register'
  /**短信标识固定 */
  smsSign: '龙池牡丹'
}

export interface AccessTokenRequest {
  /**password账号密码登录 */
  grant_type: 'password';
  /**账号 */
  username: string;
  /**密码 */
  password: string;
}

/**登录成功返回 */
export interface LoginResponse {
  /**token */
  access_token: string;
  /**刷新token */
  refresh_token: string;
}

/** 注册 */
export interface RegsiterRequest {
  /** 密码 */
  password: string;
  /** 手机号 */
  phone: string;
  /** 验证码 */
  smsCode: string
}

/**用户信息 */
export interface UserInfo {
  /**出生日期*/
  birthday: string;
  /**实名认证标识 0未实名 1已实名 */
  certificationState: '0' | '1';
  /**国家*/
  country: string;
  /**创建者*/
  createBy: string;
  /**创建时间*/
  createTime: string;
  /**生肖" */
  chineseZodiac: string;
  chineseZodiacCn: string;
  /**星座" */
  constellation: string;
  constellationCn: string;
  /**客户id" */
  customerId: string;
  /**删除标识*/
  delFlag: '0' | '1'
  /**学历*/
  education: string;
  educationCn: string;
  /**学历证件号" */
  educationCertificateNo: string;
  /**身高cm*/
  height: number;
  /**主键*/
  id: string;
  /**婚史" */
  marriageHistory: string;
  marriageHistoryCn: string;
  /**民族*/
  nation: string;
  /**籍贯" */
  nativePalce: string;
  /**现居地*/
  residence: string;
  /**更新者*/
  updateBy: string;
  /**更新时间" */
  updateTime: string;
  /**体重kg*/
  weight: number;
  /**抽烟喝酒" */
  alcoholAndTobacco: string;
  alcoholAndTobaccoCn: string;
  /**外貌*/
  appearance: string;
  appearanceCn: string;
  /**性格标签" */
  characterTags: string;
  /**兴趣爱好" */
  hobbyTags: string;
  /**年薪" */
  annualSalary: string;
  annualSalaryCn: string;
  /**家庭成员" */
  familyStructure: string;
  /**购房情况*/
  house: string;
  /**岗位性质" */
  jobType: string;
  jobTypeCn: string;
  /**单位性质" */
  organizationNature: string;
  organizationNatureCn: string;
  /**从事行业" */
  profession: string;
  professionCn: string;
  /**职务*/
  title: string;
  titleCn: string;
  /**购车情况" */
  vehicle: string;
  vehicleCn: string;
  /**年龄*/
  age: string;
  /**邮箱*/
  email: string;
  /**性别 1 男2 */
  gender: '1' | '2';
  genderCn: string;
  /**头像图片地址*/
  headImg: string;
  /**证件号*/
  identityCard: string;
  /**证件类型1.身份证*/
  identityCardType: '1'
  /**用户昵称*/
  nickName: string;
  /**上级区域代理人ID*/
  parentAgentCustomerId: string;
  /**上级推荐人ID*/
  parentCustomerId: string;
  /**密码*/
  password: string;
  /**手机号*/
  phone: string;
  /**用户名 */
  username: string;
  /**qq*/
  qq: string
  /**真实姓名*/
  realName: string;
  /**启用状态0-启用，1-*/
  state: '0' | '1';
  /**wechat*/
  wechat: string;
  /**微信昵称*/
  wxNickname: string;
  /**0 普通会员；1 中端会员 */
  vip: '0' | '1';
  /** 独白 */
  monologue: string;
  /**未完善信息时下面的数据不会返回 */
  customerBasicInfo?: Partial<CustomerBasicInfo>;
  customerCharacter?: Partial<CustomerCharacter>;
  customerEconomicInfo?: Partial<CustomerEconomicInfo>;
  customerSpousePreference?: Partial<CustomerSpousePreference>;
}

/**	客户基础信息 */
export interface CustomerBasicInfo {
  birthday: string;
  chineseZodiac: string;
  chineseZodiacCn: string;
  constellation: string;
  createBy: string;
  createTime: string;
  customerId: string;
  delFlag: string;
  education: string;
  educationCn: string;
  /**学历证件号 */
  educationCertificateNo: string;
  height: number;
  id: string;
  /**婚史 */
  marriageHistory: string;
  marriageHistoryCn: string;
  nation: string;
  /**籍贯 */
  nativePlace: string;
  residence: string;
  updateBy: string;
  updateTime: string;
  weight: number
}
/**	客户性格爱好 */
export interface CustomerCharacter {
  /** 抽烟喝酒 */
  alcoholAndTobacco: string;
  /** 外貌 */
  appearance: string;
  /** 性格标签 */
  characterTags: string;
  characterTagsCn: string;
  createBy: string;
  createTime: string;
  /** 客户id */
  customerId: string;
  /** 删除标识 */
  delFlag: string;
  /** 兴趣爱好 */
  hobbyTags: string;
  hobbyTagsCn: string;
  id: string;
  updateBy: string;
  updateTime: string
}
/**客户经济信息 */
export interface CustomerEconomicInfo {
  /** 年薪 */
  annualSalary: string;
  annualSalaryCn: string;
  createBy: string;
  createTime: string;
  /** 客户id */
  customerId: string;
  /** 删除标识 */
  delFlag: string;
  /** 家庭结构 */
  familyStructure: string;
  familyStructureCn: string;
  /** 购房情况 */
  house: string;
  houseCn: string;
  id: string;
  /** 岗位性质 */
  jobType: string;
  /** 单位性质 */
  organizationNature: string;
  /** 从事行业 */
  profession: string;
  /** 职务 */
  title: string;
  updateBy: string;
  updateTime: string;
  /** 购车情况 */
  vehicle: string

}

/**客户择偶条件 */
export interface CustomerSpousePreference {
  minAge: number;
  maxAge: number;
  minWeight: number;
  maxWeight: number;
  minHeight: number;
  maxHeight: number;
  age: string;
  alcoholAndTobacco: string;
  annualSalary: string;
  annualSalaryCn: string;
  appearance: string;
  appearanceCn: string;
  characterTags: string;
  characterTagsCn: string;
  chineseZodiac: string;
  constellation: string;
  createBy: string;
  createTime: string;
  customerId: string;
  delFlag: string;
  /** 学历 */
  education: string;
  educationCn: string;
  familyStructure: string;
  height: number;
  house: string;
  id: string;
  jobType: string;
  marriageHistory: string;
  nation: string;
  nativePalce: string;
  organizationNature: string;
  profession: string;
  residence: string;
  title: string;
  updateBy: string;
  updateTime: string;
  vehicle: string;
  weight: number
}

/** 字典类型 */
export enum IDictionaries {
  /** 星座 */
  constellation = 'constellation',
  /** 年薪 */
  annualSalary = 'annualSalary',
  /** 行业 */
  profession = 'profession',
  /** 职务 */
  title = 'title',
  /** 单位性质 */
  organizationNature = 'organizationNature',
  /** 购房情况 */
  house = 'house',
  /** 家庭结构 */
  familyStructure = 'familyStructure',
  /** 烟酒情况 */
  alcoholAndTobacco = 'alcoholAndTobacco',
  /** 婚史 */
  marriageHistory = 'marriageHistory',
  /** 生肖 */
  chineseZodiac = 'chineseZodiac',
  /** 购车情况 */
  vehicle = 'vehicle',
  /** 岗位性质 */
  jobType = 'jobType',
  /** 外貌 */
  appearance = 'appearance',
  /** 性格标签 */
  characterTags = 'characterTags',
  /** 兴趣爱好 */
  hobbyTags = 'hobbyTags',
  /** 学历 */
  education = 'education'
}

/** 字典项 */
export interface IDictionariesItem {
  id: string;
  /** 字典描述 */
  label: string;
  /** 字典值 */
  value: string;
  /** 排序 */
  sort: number;
}